package com.client;

import com.lagou.service.UserService;

/**
 * @author 陶肖寅
 * @version V1.0
 * @Package com.lagou.client
 * @email fromlx@126.com
 * @date 2020-03-23 22:51
 * @Copyright © 2020-2021 城云科技(中国)有限公司
 */
public class ClientBootStrap {
    public static void main(String[] args) {
        RpcConsumer rpcConsumer = new RpcConsumer();
        UserService proxy = (UserService) rpcConsumer.createProxy(UserService.class);
        while (true) {
            try {
                Thread.sleep(2000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(proxy.sayHello("are you ok?"));
        }
    }
}
